Integrand size = 20, antiderivative size = 125 \[ \int \frac {1-x^4}{1-6 x^4+x^8} \, dx=\frac {\arctan \left (\frac {x}{\sqrt {-1+\sqrt {2}}}\right )}{4 \sqrt {2 \left (-1+\sqrt {2}\right )}}+\frac {\arctan \left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )}{4 \sqrt {2 \left (1+\sqrt {2}\right )}}+\frac {\text {arctanh}\left (\frac {x}{\sqrt {-1+\sqrt {2}}}\right )}{4 \sqrt {2 \left (-1+\sqrt {2}\right )}}+\frac {\text {arctanh}\left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )}{4 \sqrt {2 \left (1+\sqrt {2}\right )}} \]
1/4*arctan(x/(2^(1/2)-1)^(1/2))/(-2+2*2^(1/2))^(1/2)+1/4*arctanh(x/(2^(1/2 )-1)^(1/2))/(-2+2*2^(1/2))^(1/2)+1/4*arctan(x/(1+2^(1/2))^(1/2))/(2+2*2^(1 /2))^(1/2)+1/4*arctanh(x/(1+2^(1/2))^(1/2))/(2+2*2^(1/2))^(1/2)
Time = 0.04 (sec) , antiderivative size = 114, normalized size of antiderivative = 0.91 \[ \int \frac {1-x^4}{1-6 x^4+x^8} \, dx=\frac {\sqrt {1+\sqrt {2}} \arctan \left (\frac {x}{\sqrt {-1+\sqrt {2}}}\right )+\sqrt {-1+\sqrt {2}} \arctan \left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )+\sqrt {1+\sqrt {2}} \text {arctanh}\left (\frac {x}{\sqrt {-1+\sqrt {2}}}\right )+\sqrt {-1+\sqrt {2}} \text {arctanh}\left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )}{4 \sqrt {2}} \]
(Sqrt[1 + Sqrt[2]]*ArcTan[x/Sqrt[-1 + Sqrt[2]]] + Sqrt[-1 + Sqrt[2]]*ArcTa n[x/Sqrt[1 + Sqrt[2]]] + Sqrt[1 + Sqrt[2]]*ArcTanh[x/Sqrt[-1 + Sqrt[2]]] + Sqrt[-1 + Sqrt[2]]*ArcTanh[x/Sqrt[1 + Sqrt[2]]])/(4*Sqrt[2])
Time = 0.23 (sec) , antiderivative size = 135, normalized size of antiderivative = 1.08, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1749, 1406, 216, 220}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {1-x^4}{x^8-6 x^4+1} \, dx\) |
\(\Big \downarrow \) 1749 |
\(\displaystyle -\frac {1}{2} \int \frac {1}{x^4-2 x^2-1}dx-\frac {1}{2} \int \frac {1}{x^4+2 x^2-1}dx\) |
\(\Big \downarrow \) 1406 |
\(\displaystyle \frac {1}{2} \left (\frac {\int \frac {1}{x^2+\sqrt {2}-1}dx}{2 \sqrt {2}}-\frac {\int \frac {1}{x^2-\sqrt {2}-1}dx}{2 \sqrt {2}}\right )+\frac {1}{2} \left (\frac {\int \frac {1}{x^2+\sqrt {2}+1}dx}{2 \sqrt {2}}-\frac {\int \frac {1}{x^2-\sqrt {2}+1}dx}{2 \sqrt {2}}\right )\) |
\(\Big \downarrow \) 216 |
\(\displaystyle \frac {1}{2} \left (\frac {\arctan \left (\frac {x}{\sqrt {\sqrt {2}-1}}\right )}{2 \sqrt {2 \left (\sqrt {2}-1\right )}}-\frac {\int \frac {1}{x^2-\sqrt {2}-1}dx}{2 \sqrt {2}}\right )+\frac {1}{2} \left (\frac {\arctan \left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )}{2 \sqrt {2 \left (1+\sqrt {2}\right )}}-\frac {\int \frac {1}{x^2-\sqrt {2}+1}dx}{2 \sqrt {2}}\right )\) |
\(\Big \downarrow \) 220 |
\(\displaystyle \frac {1}{2} \left (\frac {\arctan \left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )}{2 \sqrt {2 \left (1+\sqrt {2}\right )}}+\frac {\text {arctanh}\left (\frac {x}{\sqrt {\sqrt {2}-1}}\right )}{2 \sqrt {2 \left (\sqrt {2}-1\right )}}\right )+\frac {1}{2} \left (\frac {\arctan \left (\frac {x}{\sqrt {\sqrt {2}-1}}\right )}{2 \sqrt {2 \left (\sqrt {2}-1\right )}}+\frac {\text {arctanh}\left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )}{2 \sqrt {2 \left (1+\sqrt {2}\right )}}\right )\) |
(ArcTan[x/Sqrt[1 + Sqrt[2]]]/(2*Sqrt[2*(1 + Sqrt[2])]) + ArcTanh[x/Sqrt[-1 + Sqrt[2]]]/(2*Sqrt[2*(-1 + Sqrt[2])]))/2 + (ArcTan[x/Sqrt[-1 + Sqrt[2]]] /(2*Sqrt[2*(-1 + Sqrt[2])]) + ArcTanh[x/Sqrt[1 + Sqrt[2]]]/(2*Sqrt[2*(1 + Sqrt[2])]))/2
3.1.30.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[b, 2])^(- 1))*ArcTanh[Rt[b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(-1), x_Symbol] :> With[{q = Rt[b^ 2 - 4*a*c, 2]}, Simp[c/q Int[1/(b/2 - q/2 + c*x^2), x], x] - Simp[c/q I nt[1/(b/2 + q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c , 0] && PosQ[b^2 - 4*a*c]
Int[((d_) + (e_.)*(x_)^(n_))/((a_) + (b_.)*(x_)^(n_) + (c_.)*(x_)^(n2_)), x _Symbol] :> With[{q = Rt[2*(d/e) - b/c, 2]}, Simp[e/(2*c) Int[1/Simp[d/e + q*x^(n/2) + x^n, x], x], x] + Simp[e/(2*c) Int[1/Simp[d/e - q*x^(n/2) + x^n, x], x], x]] /; FreeQ[{a, b, c, d, e}, x] && EqQ[n2, 2*n] && NeQ[b^2 - 4*a*c, 0] && EqQ[c*d^2 - a*e^2, 0] && IGtQ[n/2, 0] && (GtQ[2*(d/e) - b/c, 0] || ( !LtQ[2*(d/e) - b/c, 0] && EqQ[d, e*Rt[a/c, 2]]))
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.10 (sec) , antiderivative size = 64, normalized size of antiderivative = 0.51
method | result | size |
risch | \(\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (4 \textit {\_Z}^{4}-4 \textit {\_Z}^{2}-1\right )}{\sum }\textit {\_R} \ln \left (-2 \textit {\_R}^{3}+3 \textit {\_R} +x \right )\right )}{8}+\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (4 \textit {\_Z}^{4}+4 \textit {\_Z}^{2}-1\right )}{\sum }\textit {\_R} \ln \left (2 \textit {\_R}^{3}+3 \textit {\_R} +x \right )\right )}{8}\) | \(64\) |
default | \(\frac {\sqrt {2}\, \operatorname {arctanh}\left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )}{8 \sqrt {1+\sqrt {2}}}+\frac {\sqrt {2}\, \arctan \left (\frac {x}{\sqrt {\sqrt {2}-1}}\right )}{8 \sqrt {\sqrt {2}-1}}+\frac {\sqrt {2}\, \operatorname {arctanh}\left (\frac {x}{\sqrt {\sqrt {2}-1}}\right )}{8 \sqrt {\sqrt {2}-1}}+\frac {\sqrt {2}\, \arctan \left (\frac {x}{\sqrt {1+\sqrt {2}}}\right )}{8 \sqrt {1+\sqrt {2}}}\) | \(90\) |
1/8*sum(_R*ln(-2*_R^3+3*_R+x),_R=RootOf(4*_Z^4-4*_Z^2-1))+1/8*sum(_R*ln(2* _R^3+3*_R+x),_R=RootOf(4*_Z^4+4*_Z^2-1))
Leaf count of result is larger than twice the leaf count of optimal. 245 vs. \(2 (85) = 170\).
Time = 0.28 (sec) , antiderivative size = 245, normalized size of antiderivative = 1.96 \[ \int \frac {1-x^4}{1-6 x^4+x^8} \, dx=\frac {1}{16} \, \sqrt {2} \sqrt {\sqrt {2} - 1} \log \left ({\left (\sqrt {2} + 1\right )} \sqrt {\sqrt {2} - 1} + x\right ) - \frac {1}{16} \, \sqrt {2} \sqrt {\sqrt {2} - 1} \log \left (-{\left (\sqrt {2} + 1\right )} \sqrt {\sqrt {2} - 1} + x\right ) + \frac {1}{16} \, \sqrt {2} \sqrt {\sqrt {2} + 1} \log \left (\sqrt {\sqrt {2} + 1} {\left (\sqrt {2} - 1\right )} + x\right ) - \frac {1}{16} \, \sqrt {2} \sqrt {\sqrt {2} + 1} \log \left (-\sqrt {\sqrt {2} + 1} {\left (\sqrt {2} - 1\right )} + x\right ) + \frac {1}{16} \, \sqrt {2} \sqrt {-\sqrt {2} + 1} \log \left ({\left (\sqrt {2} + 1\right )} \sqrt {-\sqrt {2} + 1} + x\right ) - \frac {1}{16} \, \sqrt {2} \sqrt {-\sqrt {2} + 1} \log \left (-{\left (\sqrt {2} + 1\right )} \sqrt {-\sqrt {2} + 1} + x\right ) + \frac {1}{16} \, \sqrt {2} \sqrt {-\sqrt {2} - 1} \log \left ({\left (\sqrt {2} - 1\right )} \sqrt {-\sqrt {2} - 1} + x\right ) - \frac {1}{16} \, \sqrt {2} \sqrt {-\sqrt {2} - 1} \log \left (-{\left (\sqrt {2} - 1\right )} \sqrt {-\sqrt {2} - 1} + x\right ) \]
1/16*sqrt(2)*sqrt(sqrt(2) - 1)*log((sqrt(2) + 1)*sqrt(sqrt(2) - 1) + x) - 1/16*sqrt(2)*sqrt(sqrt(2) - 1)*log(-(sqrt(2) + 1)*sqrt(sqrt(2) - 1) + x) + 1/16*sqrt(2)*sqrt(sqrt(2) + 1)*log(sqrt(sqrt(2) + 1)*(sqrt(2) - 1) + x) - 1/16*sqrt(2)*sqrt(sqrt(2) + 1)*log(-sqrt(sqrt(2) + 1)*(sqrt(2) - 1) + x) + 1/16*sqrt(2)*sqrt(-sqrt(2) + 1)*log((sqrt(2) + 1)*sqrt(-sqrt(2) + 1) + x ) - 1/16*sqrt(2)*sqrt(-sqrt(2) + 1)*log(-(sqrt(2) + 1)*sqrt(-sqrt(2) + 1) + x) + 1/16*sqrt(2)*sqrt(-sqrt(2) - 1)*log((sqrt(2) - 1)*sqrt(-sqrt(2) - 1 ) + x) - 1/16*sqrt(2)*sqrt(-sqrt(2) - 1)*log(-(sqrt(2) - 1)*sqrt(-sqrt(2) - 1) + x)
Time = 0.67 (sec) , antiderivative size = 51, normalized size of antiderivative = 0.41 \[ \int \frac {1-x^4}{1-6 x^4+x^8} \, dx=- \operatorname {RootSum} {\left (16384 t^{4} - 256 t^{2} - 1, \left ( t \mapsto t \log {\left (65536 t^{5} - 28 t + x \right )} \right )\right )} - \operatorname {RootSum} {\left (16384 t^{4} + 256 t^{2} - 1, \left ( t \mapsto t \log {\left (65536 t^{5} - 28 t + x \right )} \right )\right )} \]
-RootSum(16384*_t**4 - 256*_t**2 - 1, Lambda(_t, _t*log(65536*_t**5 - 28*_ t + x))) - RootSum(16384*_t**4 + 256*_t**2 - 1, Lambda(_t, _t*log(65536*_t **5 - 28*_t + x)))
\[ \int \frac {1-x^4}{1-6 x^4+x^8} \, dx=\int { -\frac {x^{4} - 1}{x^{8} - 6 \, x^{4} + 1} \,d x } \]
Time = 0.35 (sec) , antiderivative size = 135, normalized size of antiderivative = 1.08 \[ \int \frac {1-x^4}{1-6 x^4+x^8} \, dx=\frac {1}{8} \, \sqrt {2 \, \sqrt {2} - 2} \arctan \left (\frac {x}{\sqrt {\sqrt {2} + 1}}\right ) + \frac {1}{8} \, \sqrt {2 \, \sqrt {2} + 2} \arctan \left (\frac {x}{\sqrt {\sqrt {2} - 1}}\right ) + \frac {1}{16} \, \sqrt {2 \, \sqrt {2} - 2} \log \left ({\left | x + \sqrt {\sqrt {2} + 1} \right |}\right ) - \frac {1}{16} \, \sqrt {2 \, \sqrt {2} - 2} \log \left ({\left | x - \sqrt {\sqrt {2} + 1} \right |}\right ) + \frac {1}{16} \, \sqrt {2 \, \sqrt {2} + 2} \log \left ({\left | x + \sqrt {\sqrt {2} - 1} \right |}\right ) - \frac {1}{16} \, \sqrt {2 \, \sqrt {2} + 2} \log \left ({\left | x - \sqrt {\sqrt {2} - 1} \right |}\right ) \]
1/8*sqrt(2*sqrt(2) - 2)*arctan(x/sqrt(sqrt(2) + 1)) + 1/8*sqrt(2*sqrt(2) + 2)*arctan(x/sqrt(sqrt(2) - 1)) + 1/16*sqrt(2*sqrt(2) - 2)*log(abs(x + sqr t(sqrt(2) + 1))) - 1/16*sqrt(2*sqrt(2) - 2)*log(abs(x - sqrt(sqrt(2) + 1)) ) + 1/16*sqrt(2*sqrt(2) + 2)*log(abs(x + sqrt(sqrt(2) - 1))) - 1/16*sqrt(2 *sqrt(2) + 2)*log(abs(x - sqrt(sqrt(2) - 1)))
Time = 8.51 (sec) , antiderivative size = 245, normalized size of antiderivative = 1.96 \[ \int \frac {1-x^4}{1-6 x^4+x^8} \, dx=-\frac {\sqrt {2}\,\mathrm {atan}\left (\frac {x\,\sqrt {1-\sqrt {2}}\,4352{}\mathrm {i}}{3072\,\sqrt {2}-4352}-\frac {\sqrt {2}\,x\,\sqrt {1-\sqrt {2}}\,3072{}\mathrm {i}}{3072\,\sqrt {2}-4352}\right )\,\sqrt {1-\sqrt {2}}\,1{}\mathrm {i}}{8}+\frac {\sqrt {2}\,\mathrm {atan}\left (\frac {x\,\sqrt {-\sqrt {2}-1}\,4352{}\mathrm {i}}{3072\,\sqrt {2}+4352}+\frac {\sqrt {2}\,x\,\sqrt {-\sqrt {2}-1}\,3072{}\mathrm {i}}{3072\,\sqrt {2}+4352}\right )\,\sqrt {-\sqrt {2}-1}\,1{}\mathrm {i}}{8}+\frac {\sqrt {2}\,\mathrm {atan}\left (\frac {x\,\sqrt {\sqrt {2}-1}\,4352{}\mathrm {i}}{3072\,\sqrt {2}-4352}-\frac {\sqrt {2}\,x\,\sqrt {\sqrt {2}-1}\,3072{}\mathrm {i}}{3072\,\sqrt {2}-4352}\right )\,\sqrt {\sqrt {2}-1}\,1{}\mathrm {i}}{8}-\frac {\sqrt {2}\,\mathrm {atan}\left (\frac {x\,\sqrt {\sqrt {2}+1}\,4352{}\mathrm {i}}{3072\,\sqrt {2}+4352}+\frac {\sqrt {2}\,x\,\sqrt {\sqrt {2}+1}\,3072{}\mathrm {i}}{3072\,\sqrt {2}+4352}\right )\,\sqrt {\sqrt {2}+1}\,1{}\mathrm {i}}{8} \]
(2^(1/2)*atan((x*(- 2^(1/2) - 1)^(1/2)*4352i)/(3072*2^(1/2) + 4352) + (2^( 1/2)*x*(- 2^(1/2) - 1)^(1/2)*3072i)/(3072*2^(1/2) + 4352))*(- 2^(1/2) - 1) ^(1/2)*1i)/8 - (2^(1/2)*atan((x*(1 - 2^(1/2))^(1/2)*4352i)/(3072*2^(1/2) - 4352) - (2^(1/2)*x*(1 - 2^(1/2))^(1/2)*3072i)/(3072*2^(1/2) - 4352))*(1 - 2^(1/2))^(1/2)*1i)/8 + (2^(1/2)*atan((x*(2^(1/2) - 1)^(1/2)*4352i)/(3072* 2^(1/2) - 4352) - (2^(1/2)*x*(2^(1/2) - 1)^(1/2)*3072i)/(3072*2^(1/2) - 43 52))*(2^(1/2) - 1)^(1/2)*1i)/8 - (2^(1/2)*atan((x*(2^(1/2) + 1)^(1/2)*4352 i)/(3072*2^(1/2) + 4352) + (2^(1/2)*x*(2^(1/2) + 1)^(1/2)*3072i)/(3072*2^( 1/2) + 4352))*(2^(1/2) + 1)^(1/2)*1i)/8